<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
    	
        <record id="account_statement_report_form_view_applico" model="ir.ui.view">
            <field name="name">Statement of Account</field>
            <field name="model">param.account.statement.report</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
            	<form string="Statement of Account Report">
            		<group>
						<field name="date_to"/>
					</group>
					<footer>
						<button name="generate" string="Print as PDF" type="object" default_focus="1" class="oe_highlight"/>
	                    or
	                    <button name="print_report" string="Print as XLS" type="object" class="oe_highlight" context="{'xls_output':1}"/>
		            	or
	                    <button string="Cancel" class="oe_link" special="cancel"/>
					</footer>
            	</form>
            </field>
        </record>

        <record id="action_account_statement_report_applico" model="ir.actions.act_window">
            <field name="name">Statement of Account</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">param.account.statement.report</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="account_statement_report_form_view_applico"/>
            <field name="target">new</field>
        </record>

        <record id="value_account_statement_report" model="ir.values">
            <field name="model_id" ref="base.model_res_partner" />
            <field name="name">Statement of Account</field>
            <field name="key2">client_print_multi</field>
            <field name="value" eval="'ir.actions.act_window,' + str(ref('action_account_statement_report_applico'))"/>
            <field name="key">action</field>
            <field name="model">res.partner</field>
        </record>

    </data>
</openerp>
